home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume91
/
utilitys
/
star
/
part01
/
Star.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-14
|
569b
|
25 lines
; /* Star.c - set '*' for wildcard character (for "#?") under DOS 2.0
;Execute this file as a Shell script, and it will compile and link itself.
lc -cwus -O -v -j73 Star
blink from Star.o to Star SmallData SmallCode
quit
*/
#include <exec/types.h>
#include <dos/dosextens.h>
#include <proto/exec.h>
#include <proto/dos.h>
void star(void)
{
struct DosLibrary *DOSBase;
struct RootNode *Root;
if (DOSBase = (struct DOSBase *)OpenLibrary("dos.library", 36)) {
Root = DOSBase->dl_Root;
Root->rn_Flags |= 1 << 24;
CloseLibrary((struct Library *)DOSBase);
}
}